gdk/wayland: Drop explicit ungrab after surface move/resize
authorCarlos Garnacho <carlosg@gnome.org>
Tue, 12 May 2020 08:24:36 +0000 (10:24 +0200)
committerCarlos Garnacho <carlosg@gnome.org>
Tue, 12 May 2020 12:14:39 +0000 (14:14 +0200)
We now break grabs properly if receiving a .leave event with
active buttons. This is not necessary anymore.

gdk/wayland/gdksurface-wayland.c

index 2bbc4ef40ff5a9af35eb9c1567706e1aa3730f47..451d0bb70311324d77a8feb9a4d76f2fb7defa8a 100644 (file)
@@ -3695,11 +3695,6 @@ gdk_wayland_surface_begin_resize_drag (GdkSurface     *surface,
 
   if (sequence)
     gdk_wayland_device_unset_touch_grab (device, sequence);
-
-  /* This is needed since Wayland will absorb all the pointer events after the
-   * above function - FIXME: Is this always safe..?
-   */
-  gdk_seat_ungrab (gdk_device_get_seat (device));
 }
 
 static void
@@ -3745,11 +3740,6 @@ gdk_wayland_surface_begin_move_drag (GdkSurface *surface,
 
   if (sequence)
     gdk_wayland_device_unset_touch_grab (device, sequence);
-
-  /* This is needed since Wayland will absorb all the pointer events after the
-   * above function - FIXME: Is this always safe..?
-   */
-  gdk_seat_ungrab (gdk_device_get_seat (device));
 }
 
 static void